pack_file object
This method checks whether a given file exists in the pack.
bool file_exists(string internal_name)
Parameters:
internal_name
The name of the file to search for in the pack.
Return value:
true if the file exists, false otherwise.
Remarks:
This method will work in a pack file opened for reading.
Example:
// Check if a file exists.
void main()
{
pack_file test;
test.open("pack.dat");
if(test.file_exists("t1");
{
alert("Information", "The file t1 exists in the pack.dat file.");
}
else
{
alert("Oops", "T1 does not exist in the pack.dat file.");
}
}